package bg.ittalents.homework.airport;

import java.util.Comparator;

class RunwayComp implements Comparator<Runway> {
	// closedUntil will be used for closed and busy runway. If some is
	// landing - runway will be possitve number
	@Override
	public int compare(Runway r1, Runway r2) {
		return (int) (r1.notAvailableUntil() - r2.notAvailableUntil());

	}
}